#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>

int main()
{
	int* p = (int*)malloc(40);
	for (int i = 0; i < 10; i++)
	{
		*(p + i) = i + 1;
	}
	for ( int i = 0; i < 10; i++)
	{
		printf("%d ", *(p + i));
	}
	free(p);
	return 0;
}